//
//  SASalesCollectionTableViewCell.m
//  SunOn
//
//  Created by mc on 2017/5/3.
//  Copyright © 2017年 NeoZhang. All rights reserved.
//  销售人员首页信息显示cell 无图片  无评论  89  图片 + 150 * height_scrle  评论 44    图片+评论  150 * height_scrle + 9 + 44

#import "SASalesCollectionTableViewCell.h"

@interface SASalesCollectionTableViewCell ()

//部门+ +人名
@property (weak, nonatomic) IBOutlet UILabel *depatmentAndName;
//所属模块  例:同业信息
@property (weak, nonatomic) IBOutlet UILabel *moduleTitle;
//时间
@property (weak, nonatomic) IBOutlet UILabel *time;
//内容
@property (weak, nonatomic) IBOutlet UILabel *messageContent;
//评论内容
@property (weak, nonatomic) IBOutlet UILabel *commentLB;

//layout
//消息回复高度 38
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *xiaoxiHeight;

//信息背景高度 44
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *xiaoxiBGHeightLayout;

//图片高度 146
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageHeightLayout;

@end

@implementation SASalesCollectionTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configureCellsImageHeight:(NSInteger)imgHeight CommentHeight:(NSInteger)commentHeight {
    self.xiaoxiHeight.constant = commentHeight;
    if (commentHeight == 0) {
        self.xiaoxiBGHeightLayout.constant = 0;
    }else {
        self.xiaoxiBGHeightLayout.constant = commentHeight + 6;
    }
    self.imageHeightLayout.constant = imgHeight;
}
//写评论
- (void)writeCommentWithStr:(NSString *)comment {
    
}
@end
